package com.indusfo.spc.mapper;

import com.indusfo.spc.pojo.BatchRepair;
import com.indusfo.spc.pojo.BatchRepair;
import com.indusfo.spc.pojo.BatchRepairFlow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author liub
 * @Date 2019/12/6 8:50
 * @Version 1.0
 */
public interface BatchRepairMapper {
    /**
     * 新增
     */
    int insertBatchRepair(BatchRepair batchRepair);

    /**
     * 修改
     */
    int updateBatchRepair(BatchRepair batchRepair);

    /**
     * 查询
     */
    List<BatchRepair> queryBatchRepair(BatchRepair batchRepair);

    /**
     * 总数
     */
    int countBatchRepair(BatchRepair batchRepair);

    /**
     * 判重
     */
    int checkBatchRepair(BatchRepair batchRepair);

    /**
     * 启停
     */
    int deleteBatchRepair(@Param("batchRepairIds") List<Integer> batchRepairIds, @Param("dataState") Integer dataState);

}